<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2019-06-14
 * Time: 12:16
 */

ini_set('display_errors', 1);
error_reporting(0);
require_once '/data/wwwroot/g_vendor/autoload.php';


use Doraemon\amqp\Queue;

$list = <<<TEST
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["251538","O190526-48S52B-52PP9XK-1","109.00","0.00","0.00","0.00","0.00","16.35","alipay","0.00","2019-06-13 17:45:02",1],"__q":"queue/async/service","__uk":4184426468,"__from":"hzv_queue2"}
{"sign":"初始化wiki","result":{"code":1,"data":{"id":"5792"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"6019736","title":"订单已发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/3c5/dbb6e20m80m80DH00pn9sj4?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190324-2GTGTS-4XMNO7P-2","detail":"免打孔黑胡桃木戴森吹风机架挂架","remark":"百世快递：70020014905247","msg_code":101,"send_time":"2019-06-13 17:54:43","status":1}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["5545807","O190528-6CVLM7-6J8EN9L-1","216.00","0.00","0.00","0.00","0.00","32.40","wechat","0.00","2019-06-13 17:55:02",1],"__q":"queue/async/service","__uk":1210415706,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["5545807","O190528-6JJUPT-4GZRY1M-1","106.80","0.00","0.00","0.00","0.00","16.03","wechat","0.00","2019-06-13 17:55:02",1],"__q":"queue/async/service","__uk":507191096,"__from":"hzv_queue2"}
{"totag":8,"content":"事件消费的队列,queue_name=queue.ha.event.biz.order_hzv_queue2_php.biz.cli.shiporder_from.biz_event.consume,info={\"in_consume\":\"没有在消费中的被kill\"}
{"totag":8,"content":"事件消费的队列,queue_name=queue.ha.event.biz.order_hzv_queue2_php.biz.cli.user_ctrl_order_from.biz_event.consume,info={\"in_consume\":\"没有在消费中的被kill\"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5669"],1],"__q":"queue/async/service","__uk":41634427,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["1109"],1],"__q":"queue/async/service","__uk":3892655202,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["1603311","O190528-4AMK2S-5YVEJ9J-1","26.00","0.00","0.00","0.00","0.00","3.90","wechat","0.00","2019-06-13 18:20:03",1],"__q":"queue/async/service","__uk":3915998984,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["1792426","O190528-52859V-4881LO4-2","116.97","2.03","0.00","0.00","0.00","17.85","alipay","0.00","2019-06-13 18:20:03",1],"__q":"queue/async/service","__uk":3185968024,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["1792426","O190528-5QL068-5YE073E-1","69.00","0.00","0.00","0.00","0.00","10.35","wechat","0.00","2019-06-13 18:20:03",1],"__q":"queue/async/service","__uk":1132971639,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["1792426","O190529-3OB5A-4RGN0NM-3","32.03","0.00","3.97","0.00","0.00","5.40","alipay","0.00","2019-06-13 18:20:03",1],"__q":"queue/async/service","__uk":2972460164,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["2541904","O190613-5DM80B-693VEN0-1","415.00","wechat","6.00"],"__q":"queue/async/service","__uk":3802209026,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"3432735","title":"订单已支付，等待商家发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/50c/4d1c920dx0dx00000pdy3fb?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190613-5DM80B-693VEN0-1","detail":"感谢你在好好住商城下单，你可以在「我的订单」中查看物流消息","remark":"来自订单O190613-5DM80B-693VEN0-1","msg_code":103,"send_time":"2019-06-13 18:21:42","status":1}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5670"],1],"__q":"queue/async/service","__uk":1944196328,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["32954","O190527-6L7PVJ-53YP2L6-1","119.00","0.00","10.00","0.00","0.00","0.00","alipay","0.00","2019-06-13 18:25:02",1],"__q":"queue/async/service","__uk":1394778180,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5671"],1],"__q":"queue/async/service","__uk":1028859563,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5672"],1],"__q":"queue/async/service","__uk":3557810224,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5673"],1],"__q":"queue/async/service","__uk":1992967432,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterConfirmOrder"],"params":["4669768","O190529-3J7KGO-69L9M7E-2","96.38","0.00","8.42","0.00","0.00","15.72","wechat","0.00","2019-06-13 19:15:02",1],"__q":"queue/async/service","__uk":3390368444,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["4372030","O190613-5MKPLA-53ZRJGM-1","437.00","wechat","48.00"],"__q":"queue/async/service","__uk":180619813,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"6374303","title":"订单已支付，等待商家发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/8f4/09ccf20zk0zk0oV00pk0o8o?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190613-5MKPLA-53ZRJGM-1","detail":"感谢你在好好住商城下单，你可以在「我的订单」中查看物流消息","remark":"来自订单O190613-5MKPLA-53ZRJGM-1","msg_code":103,"send_time":"2019-06-13 19:15:40","status":1}
{"totag":55,"content":"【节选新订单提醒】theParagraph节选 的 SAWYER 04 台灯 CK ;已由手机尾号为8557支付，实付总金额为437.00元，订单号：O190613-5MKPLA-53ZRJGM-1","__q":"queue/Wechatnotice/toTag","__uk":2306868762,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["5975244","O190613-5N6OC8-53ZRJGM-1","398.00","wechat","0.00"],"__q":"queue/async/service","__uk":3914069657,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"6374303","title":"订单已支付，等待商家发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/497/a829c20m80m80av00pr892c?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190613-5N6OC8-53ZRJGM-1","detail":"感谢你在好好住商城下单，你可以在「我的订单」中查看物流消息","remark":"来自订单O190613-5N6OC8-53ZRJGM-1","msg_code":103,"send_time":"2019-06-13 19:21:22","status":1}
{"callback":["Biz\\module\\Behaviors\\StockBehavior","_async_IncrStocksCounter"],"params":[[{"2270536":98}
{"callback":["Biz\\service\\trade\\Integral","_async_operatePoint"],"params":["5040011","500","O190613-5PAVG7-690WNP8-1",3],"__q":"queue/async/service","__uk":1984324780,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\trade\\Integral","_async_operatePoint"],"params":["5040011","1500","O190613-5PB4J9-690WNP8-1",3],"__q":"queue/async/service","__uk":3156222455,"__from":"hzv_queue2"}
{"callback":["Biz\\module\\Behaviors\\StockBehavior","_async_IncrStocksCounter"],"params":[[{"2227453":5}
{"callback":["Biz\\module\\Behaviors\\StockBehavior","_async_IncrStocksCounter"],"params":[[{"2252911":2,"2252910":1}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5674"],1],"__q":"queue/async/service","__uk":3655647796,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5675"],1],"__q":"queue/async/service","__uk":4212586621,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5675"],1],"__q":"queue/async/service","__uk":1609670974,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5675"],1],"__q":"queue/async/service","__uk":3633186268,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["4372030","P190613-6274VM-6LLG1K1-1","4332.70","the_paragraph","374.50"],"__q":"queue/async/service","__uk":3885661429,"__from":"hzv_queue2"}
{"totag":1,"content":"【好好住商城】theParagraph节选的 MODENA M 边几 CK、MODENA L 边几 CK 等商品已由住友 hhz_jhpw4P 支付完毕，订单号：P190613-6274VM-6LLG1K1-1请尽快联系用户确认收货信息。","__q":"queue/Wechatnotice/toTag","__uk":950598745,"__from":"hzv_queue2"}
{"totag":55,"content":"【节选新订单提醒】theParagraph节选 的 MODENA M 边几 CK ;theParagraph节选 的 MODENA L 边几 CK ;已由手机尾号为9276支付，实付总金额为4332.70元，订单号：P190613-6274VM-6LLG1K1-1","__q":"queue/Wechatnotice/toTag","__uk":3451780646,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5676"],1],"__q":"queue/async/service","__uk":394913129,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5676"],1],"__q":"queue/async/service","__uk":2446562193,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["117"],1],"__q":"queue/async/service","__uk":2188544856,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["117"],1],"__q":"queue/async/service","__uk":1184093056,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5677"],1],"__q":"queue/async/service","__uk":1908631212,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5678"],1],"__q":"queue/async/service","__uk":1370210548,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5679"],1],"__q":"queue/async/service","__uk":101497498,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5679"],1],"__q":"queue/async/service","__uk":1990778761,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["5989104","O190613-6K6LPU-67LWNG9-1","179.00","alipay","0.00"],"__q":"queue/async/service","__uk":358511166,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"6295819","title":"订单已支付，等待商家发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/0b0/96c3620m80m80iF00ppfgz8?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190613-6K6LPU-67LWNG9-1","detail":"感谢你在好好住商城下单，你可以在「我的订单」中查看物流消息","remark":"来自订单O190613-6K6LPU-67LWNG9-1","msg_code":103,"send_time":"2019-06-13 22:25:36","status":1}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5679"],1],"__q":"queue/async/service","__uk":2001778086,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["5545807","O190613-6KP2VB-5EP1EEN-1","376.00","alipay","0.00"],"__q":"queue/async/service","__uk":1262570527,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\TradeMsg","_async_addMsg"],"params":[{"to_uid":"3414524","title":"订单已支付，等待商家发货","img":"https://img.haohaozhu.cn/Biz-imageShow/sq_thumb/d6a/0326020m80m805V00ppdqme?w=230&h=230&iv=1","link":"hhz://mall_order_id:O190613-6KP2VB-5EP1EEN-1","detail":"感谢你在好好住商城下单，你可以在「我的订单」中查看物流消息","remark":"来自订单O190613-6KP2VB-5EP1EEN-1","msg_code":103,"send_time":"2019-06-13 22:31:34","status":1}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5681"],1],"__q":"queue/async/service","__uk":907200601,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5682"],1],"__q":"queue/async/service","__uk":1709155033,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\settlement\\SettlementTransaction","_async_afterPaySuccess"],"params":["4372030","P190613-6LRIRJ-53EMGEG-1","2847.90","the_paragraph","15.00"],"__q":"queue/async/service","__uk":78420741,"__from":"hzv_queue2"}
{"totag":55,"content":"【节选新订单提醒】theParagraph节选 的 滚石地毯 SJ ;已由手机尾号为9699支付，实付总金额为2847.90元，订单号：P190613-6LRIRJ-53EMGEG-1","__q":"queue/Wechatnotice/toTag","__uk":4248376846,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5682"],1],"__q":"queue/async/service","__uk":4138690116,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5683"],1],"__q":"queue/async/service","__uk":4026998563,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5684"],1],"__q":"queue/async/service","__uk":2346861021,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5685"],1],"__q":"queue/async/service","__uk":3769978399,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5686"],1],"__q":"queue/async/service","__uk":260550356,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5687"],1],"__q":"queue/async/service","__uk":2877331699,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5687"],1],"__q":"queue/async/service","__uk":885120842,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5688"],1],"__q":"queue/async/service","__uk":1118356343,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5689"],1],"__q":"queue/async/service","__uk":3773293395,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5690"],1],"__q":"queue/async/service","__uk":2033701645,"__from":"hzv_queue2"}
{"totag":8,"content":"事件消费的队列,queue_name=queue.ha.event.biz.order_hzv_queue2_php.biz.cli.ctrl_refund_from.biz_event.consume,info={\"in_consume\":\"没有在消费中的被kill\"}
{"totag":8,"content":"事件消费的队列,queue_name=queue.ha.event.biz.order_hzv_queue2_php.biz.cli.payorder_from.biz_event.consume,info={\"in_consume\":\"没有在消费中的被kill\"}
{"totag":8,"content":"事件消费的队列,queue_name=queue.ha.event.biz.order_hzv_queue2_php.biz.cli.user_ctrl_order_from.biz_event.consume,info={\"in_consume\":\"没有在消费中的被kill\"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5691"],1],"__q":"queue/async/service","__uk":2740724130,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5692"],1],"__q":"queue/async/service","__uk":3009579561,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5693"],1],"__q":"queue/async/service","__uk":498984202,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5694"],1],"__q":"queue/async/service","__uk":3992862205,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5695"],1],"__q":"queue/async/service","__uk":3329209,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5696"],1],"__q":"queue/async/service","__uk":3198558643,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5696"],1],"__q":"queue/async/service","__uk":1353203871,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5696"],1],"__q":"queue/async/service","__uk":3501858916,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5696"],1],"__q":"queue/async/service","__uk":318035602,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5697"],1],"__q":"queue/async/service","__uk":606413530,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5698"],1],"__q":"queue/async/service","__uk":2441249932,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["1213"],1],"__q":"queue/async/service","__uk":2572979758,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["1213"],1],"__q":"queue/async/service","__uk":574040212,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5699"],1],"__q":"queue/async/service","__uk":2730338914,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5700"],1],"__q":"queue/async/service","__uk":3598416158,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5700"],1],"__q":"queue/async/service","__uk":3810582405,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5701"],1],"__q":"queue/async/service","__uk":935314623,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5702"],1],"__q":"queue/async/service","__uk":1490884633,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5703"],1],"__q":"queue/async/service","__uk":1332806404,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5565"],1],"__q":"queue/async/service","__uk":67160896,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5704"],1],"__q":"queue/async/service","__uk":2867906649,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5705"],1],"__q":"queue/async/service","__uk":2586079078,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5706"],1],"__q":"queue/async/service","__uk":1562045627,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5705"],1],"__q":"queue/async/service","__uk":3278318309,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5707"],1],"__q":"queue/async/service","__uk":1985465133,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5707"],1],"__q":"queue/async/service","__uk":208390946,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5707"],1],"__q":"queue/async/service","__uk":2944744125,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5708"],1],"__q":"queue/async/service","__uk":1167868269,"__from":"hzv_queue2"}
{"callback":["Biz\\service\\wiki\\RelatePhoto","_async_ResetWikiTagByWikiIds"],"params":[["5695"],1],"__q":"queue/async/service","__uk":2551060972,"__from":"hzv_queue2"}
TEST;

$list = explode("\n", $list);

if ($list == 0) {
    die("无数据");
}

foreach ($list as $k=>$msg) {
    $msg = str_replace("\\", "\\\\", $msg);

    //保证每个修复的记录都只修复一次
    $addSucc = \Biz\cache\ShopQueueFix::addFix(md5($msg));

    if ($addSucc){
        Queue::repairQueue($msg, Queue::QUEUE_BIZ);
        echo $k." 修复 \n";
        continue;
    }

    echo $k." 无需修复 \n";
}

